package com.prs.crm.context;

import java.io.File;

public class Attach {

	/**
	 * file
	 */
	private File file;
	/**
	 * name
	 */
	private String name;
	
	/**
	 * contentType
	 */
	private String contentType;
	
	/**
	 * full path
	 */

	private String path;
	
	/**
	 * relative path
	 */
	private String src;

	/**
	 * result true or false
	 */
	private boolean successed;
	
	/**
	 * error info
	 */
	private String message;
	
	public Attach()
	{
		
	}
	
	public Attach(File file)
	{
		this.file = file;
		this.name = file.getName();
		this.setSuccessed(true);
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getContentType() {
		return contentType;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getPath() {
		return path;
	}



	public void setFile(File file) {
		this.file = file;
	}

	public File getFile() {
		return file;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public String getSrc() {
		return src;
	}

	public void setSuccessed(boolean successed) {
		this.successed = successed;
	}

	public boolean isSuccessed() {
		return successed;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

}
